﻿<UserControl x:Class="Pseudogenerator.Views.WPF.GeneratorsControls.CongruencialMixto"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBlock FontSize="20" FontFamily="Segoe UI Semilight" TextDecorations="{x:Null}" Margin="12">
            <Run>X</Run>
            <Run BaselineAlignment="Subscript" FontSize="15">n+1</Run>
            <Run>=( a X</Run>
            <Run BaselineAlignment="Subscript" FontSize="15">n</Run>
            <Run>+ c ) mod m</Run>
        </TextBlock>
        
        <Grid Grid.Row="1" Margin="16,16,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <TextBlock FontSize="15" FontFamily="Segoe UI Semilight" 
                       TextDecorations="{x:Null}" Margin="3" Grid.Row="0">
                <Run>a</Run>
            </TextBlock>
            <TextBox Grid.Column="1" Grid.Row="0" Margin="0,6" Width="100" 
                     HorizontalAlignment="Left" 
                     Text="{Binding a, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                     GotFocus="TextBox_GotFocus" />

            
            <TextBlock FontSize="15" FontFamily="Segoe UI Semilight" 
                       TextDecorations="{x:Null}" Margin="3" Grid.Row="1">
                <Run>X</Run>
                <Run BaselineAlignment="Subscript" FontSize="9">0</Run>
            </TextBlock>
            <TextBox Grid.Column="1" Grid.Row="1" Margin="0,6" Width="100" 
                     HorizontalAlignment="Left" 
                     Text="{Binding x0, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                     GotFocus="TextBox_GotFocus" />

            <TextBlock FontSize="15" FontFamily="Segoe UI Semilight" 
                       TextDecorations="{x:Null}" Margin="3" Grid.Row="2">
                <Run>c</Run>
            </TextBlock>
            <TextBox Grid.Column="1" Grid.Row="2" Margin="0,6" Width="100" 
                     HorizontalAlignment="Left"  
                     Text="{Binding c, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                     GotFocus="TextBox_GotFocus"  />


            <TextBlock FontSize="15" FontFamily="Segoe UI Semilight" 
                       TextDecorations="{x:Null}" Margin="3" Grid.Row="3">
                <Run>m</Run>
            </TextBlock>
            <TextBox Grid.Column="1" Grid.Row="3" Margin="0,6" Width="100" 
                     HorizontalAlignment="Left" 
                     Text="{Binding m, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                     GotFocus="TextBox_GotFocus" />
        </Grid>
        
        
    </Grid>
</UserControl>
